package com.djk.service;

import com.djk.utils.Result;
import org.springframework.web.multipart.MultipartFile;

import javax.servlet.http.HttpServletRequest;
import javax.servlet.http.HttpSession;
import java.io.IOException;
import java.util.List;

/**
* @author 联想
* @description 针对表【music】的数据库操作Service
* @createDate 2024-02-19 22:45:43
*/
public interface MusicService{
    /**
     * 上传音乐
     * @return
     */
    Result upload(String singer, MultipartFile file, HttpServletRequest request) throws IOException;

    Result getMusic(String musicAllName) throws IOException;

    Result deleteMusicById(Integer musicId,HttpSession session);

    Result findMusicById(Integer id);

    Result deleteSelect(List<Integer> ids, HttpSession session);

    Result findMusic(String musicName);
}
